import 'package:json_annotation/json_annotation.dart';
import 'image_model.dart';
part 'user_model.g.dart';

@JsonSerializable()
class UserModel {
  bool is_prime;
  String desc;
  int id;
  ImageModel image;
  String name;
  String url;

  UserModel(this.is_prime, this.desc, this.id, this.image, this.name, this.url);

  factory UserModel.fromJson(Map<String, dynamic> json) =>
      _$UserModelFromJson(json);

  Map<String, dynamic> toJson() => _$UserModelToJson(this);
}
